package com.rongmai.db.mapper;

import com.rongmai.db.model.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【department(部门)】的数据库操作Mapper
* @createDate 2024-01-14 13:33:49
* @Entity com.rongmai.db.domain.Department
*/
public interface DepartmentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Department record);

    Department selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> queryByCompanyId(Integer companyId);

    Department queryByCompanyIdAndLabelId(@Param("companyId") Integer companyId,@Param("labelId") Integer labelId);

    List<Department> queryByDepartmentName(String name);

    List<Department> queryByLabelId(Integer titleLabelId);

    void deleteByCompanyId(Integer companyId);
}
